{php include wl_template('common/header');}
<style>
    .user{
        height: 60px;
        min-width: 180px;
    }
    .user .img{
        width: 60px;
        height: 60px;
        float: left;
        position: relative;
    }
    .user .img img{
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }
    .user .img i{
        position: absolute;
        top: 0;
        right: 0px;
        color: #FFF;
        opacity: .7;
        font-size: 13px;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        line-height: 20px;
        text-align: center;
    }
    .user .img i.icon-male{
        background: #0d8ddb;
    }
    .user .img i.icon-female{
        background: #ed5565;
        transform: rotate(  30deg) skew(  0deg);
    }
    .user .info{
        float: left;
        height: 60px;
        width: calc(100% - 60px);
        padding-left: 10px;
        padding-top: 10px;
        font-size: 15px;
        text-align: left;
        line-height: 20px;
    }
</style>
<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="javascript:;">简历列表</a></li>
</ul>
<div class="app-content">
    <!--顶部操作-->
    <div class="app-filter">
        <div class="filter-list">
            <form action="" method="get" class="form-horizontal" role="form" id="form1">
                <input type="hidden" name="c" value="site" />
                <input type="hidden" name="a" value="entry" />
                <input type="hidden" name="m" value="{MODULE_NAME}" />
                <input type="hidden" name="p" value="recruit" />
                <input type="hidden" name="ac" value="recruitment" />
                <input type="hidden" name="do" value="resumeList" />
                <input type="hidden" name="job_type" value="{$jobType}" />
                <div class="form-group">
                    <div class="col-sm-2 control-label">用户信息</div>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="search" value="{$search}" placeholder="请输入用户姓名/手机号...">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">工作类型</label>
                    <div class="col-sm-9">
                        <div class="btn-group">
                            <a href="{php echo wl_filter_url('job_type:0');}" class="btn {if $jobType == 0}btn-primary{else}btn-default{/if}">全部</a>
                            <a href="{php echo wl_filter_url('job_type:1');}" class="btn {if $jobType == 1}btn-primary{else}btn-default{/if}">全职</a>
                            <a href="{php echo wl_filter_url('job_type:2');}" class="btn {if $jobType == 2}btn-primary{else}btn-default{/if}">兼职</a>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <div class="col-sm-9">
                        <button class="btn btn-primary" type="submit">搜索</button>
                        <a href="{php echo web_url('recruit/recruitment/resumeList')}" class="btn btn-danger">清除</a>
                        <button class="btn btn-warning" type="submit" name="export" value="export">导出</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--表格信息-->
    <div class="app-table-list">
        <!--列表信息-->
        <div class="table-responsive order-list">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th class="text-center"><input type="checkbox" /></th>
                        <th class="text-center">用户信息</th>
                        <th class="text-center">上岗状态</th>
                        <th class="text-center">工作经验</th>
                        <th class="text-center">最高学历</th>
                        <th class="text-center">工作类型</th>
                        <th class="text-center">期望薪资</th>
                        <th class="text-center">期望工作地点</th>
                        <th class="text-center">添加时间</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {loop $list $key $val}
                        <tr class="text-center">
                            <td><input type="checkbox" value="{$val['id']}" /></td>
                            <td>
                                <div class="user">
                                    <div class="img">
                                        <img src="{php echo tomedia($val['avatar'])}" width=""/>
                                        {if $val['gender'] == 2}
                                        <i class="icon icon-male"></i>
                                        {else}
                                        <i class="icon icon-female"></i>
                                        {/if}
                                    </div>
                                    <div class="info">
                                        <div>{$val['name']}</div>
                                        <div>{$val['phone']}</div>
                                    </div>
                                </div>
                            </td>
                            <td>
                                {if $val['work_status'] == 1}
                                    <label class="label label-primary">随时上岗</label>
                                {elseif  $val['work_status'] == 2}
                                    <label class="label label-inverse">一周之内</label>
                                {elseif  $val['work_status'] == 3}
                                    <label class="label label-danger">一月之内</label>
                                {elseif  $val['work_status'] == 4}
                                    <label class="label label-success">考虑中</label>
                                {else}
                                    <label class="label label-default">无换岗意向</label>
                                {/if}
                            </td>
                            <td>{$val['experience']}</td>
                            <td>{$val['education']}</td>
                            <td>
                                {if $val['job_type'] == 1}
                                    <label class="label label-success">全职</label>
                                {else}
                                    <label class="label label-danger">兼职</label>
                                {/if}
                            </td>
                            <td>{$val['expect_salary']}</td>
                            <td>{$val['expect_work_address']}</td>
                            <td>{php echo date("Y-m-d H:i",$val['create_time']);}</td>
                            <td>
                                <a href="{php echo web_url('recruit/recruitment/resumeSee',['id'=>$val['id']])}" class="btn btn-info btn-sm">查看</a>
                                <a href="{php echo web_url('recruit/recruitment/resumeSee',['id'=>$val['id'],'export'=>'export'])}" class="btn btn-warning btn-sm">导出</a>
                                <a href="{php echo web_url('recruit/recruitment/resumeDel',['ids'=>$val['id']])}" class="btn btn-danger btn-sm" data-toggle="ajaxRemove" data-confirm="确定删除当前简历信息？">删除</a>
                            </td>
                        </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
        <!--操作按钮 分页信息-->
        <div class="app-table-foot clearfix">
            <div class="pull-left">
                <button class="btn btn-default" type="button" data-toggle='batch-remove' data-confirm="确定删除当前选中的所有简历信息？" data-href="{php echo web_url('recruit/recruitment/resumeDel')}">批量删除</button>
            </div>
            <div class="pull-right">{$pager}</div>
        </div>
    </div>
</div>
{php include wl_template('common/footer');}